33e7d769cad8720c8c5d69a07c20a27baa4bab0b,src/main/java/org/elasticsearch/rest/action/admin/indices/segments/RestIndicesSegmentsAction.java,RestIndicesSegmentsAction,handleRequest,#RestRequest#RestChannel#,53

Before Change


    public void handleRequest(final RestRequest request, final RestChannel channel) {
        IndicesSegmentsRequest indicesSegmentsRequest = new IndicesSegmentsRequest(splitIndices(request.param("index")));
        indicesSegmentsRequest.listenerThreaded(false);
        indicesSegmentsRequest.ignoreIndices(IgnoreIndices.fromString(request.param("ignore_indices")));
        BroadcastOperationThreading operationThreading = BroadcastOperationThreading.fromString(request.param("operation_threading"), BroadcastOperationThreading.SINGLE_THREAD);
        if (operationThreading == BroadcastOperationThreading.NO_THREADS) {
            // since we don't spawn, don't allow no_threads, but change it to a single thread

After Change


    public void handleRequest(final RestRequest request, final RestChannel channel) {
        IndicesSegmentsRequest indicesSegmentsRequest = new IndicesSegmentsRequest(splitIndices(request.param("index")));
        indicesSegmentsRequest.listenerThreaded(false);
        if (request.hasParam("ignore_indices")) {
            indicesSegmentsRequest.ignoreIndices(IgnoreIndices.fromString(request.param("ignore_indices")));
        }
        BroadcastOperationThreading operationThreading = BroadcastOperationThreading.fromString(request.param("operation_threading"), BroadcastOperationThreading.SINGLE_THREAD);
        if (operationThreading == BroadcastOperationThreading.NO_THREADS) {